@echo off

set /p branch=git branch[master]:
set /p commitInfo=git commit:

if "%branch%" == "" (set branch="master") else ( echo "123")

if "%commitInfo%" == "" (set commitInfo = "update codes.") else ( echo "234")

echo %branch%
echo %commitInfo%
echo "123"

pause